package com.yYclass.service;

import com.yYclass.controller.request.AccountLoginRequest;
import com.yYclass.controller.request.AccountRegisterRequest;
import com.yYclass.enums.SendCodeEnum;
import com.yYclass.model.AccountDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yYclass.util.JsonData;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 栗永松
 * @since 2024-04-09
 */
public interface AccountService extends IService<AccountDO> {

    JsonData sendCode(SendCodeEnum userRegister, String to);

    JsonData register(AccountRegisterRequest registerRequest);

    JsonData login(AccountLoginRequest request);

}
